<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="pub/top_list2.jsp"%> 
<%
String allprice=(String)request.getParameter("allprice");
String liuyan=(String)request.getParameter("liuyan");
String id=(String)request.getParameter("id");
String dz=(String)request.getParameter("dz");
%>
<body>
	<header class="top-header fixed-header">
			<a class="icona" href="javascript:history.go(-1)">
					<img src="images/left.png"/>
			</a>
			<h3>付款</h3>
			<!-- <a class="iconb" href="shopcar.html">
			</a> -->
	</header>
	
	<div class="contaniner fixed-cont">
		
		<!--底部不够-->
		<div style="margin-bottom: 9%;"></div>
	</div>
	
	<footer class="buy-footer fixed-footer">
			<p> 
				<small>总金额</small>
				<b><%=allprice %></b>
			</p>
				<input type="button" onclick="queren()" value="确认已付款"/>
	</footer>
	<script type="text/javascript">
		function queren(){
			var liuyan='<%=liuyan%>';
			var allprice='<%=allprice%>';
			var id='<%=id%>';
			var dz='<%=dz%>'
			var state=9;
			$.ajax({
					type : 'post',
					url : 'test.jsp',
					data : {"liuyan":liuyan,"id":id,"state":state,"dz":dz},
					success : function(data) {	
						alert("支付成功")
					}
			});
		}
	</script>
	<script type="text/javascript">
		$(".to-now .tonow label").on('touchstart',function(){
			if($(this).hasClass('ton')){
				$(".to-now .tonow label").removeClass("ton")
			}else{
				$(".to-now .tonow label").addClass("ton")
			}
		})
	</script>

</body>
</html>